package com.example.springboot.service;

import com.example.springboot.entity.SysUser;
import com.example.springboot.entity.dto.UserDTO;

import java.util.List;

/**
 * @Author: jyf2000jyf
 * @Date: 2022/4/27
 * @Time: 16:31
 * @Email: 904593011@qq.com
 * @Description:
 **/
public interface UserService {
    Integer save(SysUser user);

    List<SysUser> findAll();

    Integer delete(Integer id);

    List<SysUser> findAll(Integer pageNum, Integer pageSize, String username, String email, String contactPerson);

    Integer getAmount(String username, String email, String contactPerson);

    void saveBatch(List<SysUser> users);

    UserDTO login(UserDTO userDTO);

    UserDTO register(UserDTO userDTO);

    SysUser getUserInfo(String username);

    Integer getUserIdByUsername(String username);

    Integer getUserAmount();

    Integer getNewUser();
}
